<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/jsp/declare.jsp" %>

<!DOCTYPE html>
<html>
<head>
	<base href="<%=basePath %>" />
	<title>列表-小区</title>
	<%@ include file="/common/jsp/common.jsp" %>
	
	<script>
	function communityAdd() {
		redirect("mvc/master/communityEdit.html");
	}
	</script>
</head>
<body id="community" class="bg-grey">
	<div class="center">
		<div class="title">
			我的房屋
		</div>
		<ul class="center">
			<c:forEach var="community" items="${communitys}">
			<a href="mvc/master/${community.id}/roomList.htm?fromUserName=<%=fromUserName%>">
				<li class="item inline">
					<div class="communityPic"><img src="aizu/images/community/community.jpg" /></div>
					<div class="communityDesc">${community.dname }<br />${community.name }</div>
				</li>
			</a>
			</c:forEach>
		</ul>
	</div>
	<!-- <div class="button-bar center">
		<div class="button-bar center fixed bottom">
			<input type="button" value="新增小区" class="submit" onclick="communityAdd()" />
		</div>
	</div> -->
</body>
</html>